﻿using System;
using System.Collections.Generic;
using System.Data;
using Wei8808Cms.DAL;
using Wei8808Cms.Model;

namespace Wei8808Cms.BLL
{
    public class AdministratorBLL
    {
        private readonly AdministratorDAL _dal=new AdministratorDAL();

        public int GetCount(Pagination qcmodel)
        {
            return _dal.GetCount(qcmodel);
        }

        public DataSet GetPageList(Pagination qcmodel)
        {
            return _dal.GetPageList(qcmodel);
        }

        public bool Add(AdministratorInfo model)
        {
            return _dal.Add(model);
        }

        public bool Delete(List<AdministratorInfo> list)
        {
            return _dal.Delete(list);
        }

        public AdministratorInfo GetAdministratorInfo(string id)
        {
            return _dal.GetAdministratorInfo(id);
        }

        public bool Update(AdministratorInfo model)
        {
            return _dal.Update(model);
        }

        public bool Exists(string userName)
        {
            return _dal.Exists(userName);
        }

        public bool Login(string userName, string userPwd)
        {
            return _dal.Login(userName, userPwd);
        }
    }
}
